<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查看警种协作</title>
<link href="css/table.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
 function loadFile(val){
		var fileId=$("#fileArray").val();
		if(fileId!=''&&fileId!='null'){
			var param={"fileArray":fileId};
			$.post("getFileList.action",param,function(data) {
				var list=data.fileList;
				for(var i=0;i<list.length;i++){
					$("#"+val).prepend("<li>"+list[i].name+"&nbsp;<a href=\"downLoadFile.action?fileId="+list[i].id+"\">下载</a></li>&nbsp;&nbsp;");
		        }
			},"json");
		}
	} 
	
</script>
</head>
<body onload="loadFile('filetable')">
<input type="hidden" id="fileArray" name="policeTeam.fileId" value="${policeTeam.fileId}">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
  <tbody>
  <tr>
    <td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
    <td style="background: url('image/wsoa_window_002.gif');"><table border="0" cellpadding="0" cellspacing="0">
      <tbody><tr>
        <td align="center" style="background: url('image/wsoa_window_002.gif');" width="10"><img src="image/center_19.gif"></td>
        <td align="center" style="background: url('image/wsoa_window_002.gif');"></td>
        <td></td>
        </tr>
    </tbody>
    </table></td>
    <td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
  </tr>
  <tr>
    <td style="background: url('image/wsoa_window_010.gif');"  width="1">&nbsp;</td>
    <td>
	  <table width="100%" align="center" class="table5">
		<tr class="reigh_list4">
			<td class="table5 bgcolor5"  align="right" width="8%">
			标题：
			</td>
			<td class="table5" align="left" colspan="2">
				${policeTeam.title}
			</tr>
		<tr class="reigh_list4" >
			<td class="table5 bgcolor5"  height="200px" align="right" width="8%">
			内容：
			</td>
			<td  class="table5"  height="200px" align="left" colspan="2">
				${policeTeam.content} 
			</td>
		</tr>
		<tr class="reigh_list4">
        	<td class="table5 bgcolor5" align="right"  align="right" width="8%">
			附件：
			</td>
			<td class="table5" align="left" colspan="2">
				<table id="filetable" style="border:#cddee9 double 2px; width:605px">
					
				</table>
			</td>
		</tr>
	</table>
	<p></p>
	<c:if test="${!empty reportList}">
	<table  align="center"  width="95%" border="0" cellspacing="1" cellpadding="0" bordercolor="#999999" bgcolor="#999999" >
		<tr>
			<td   class="bgcolor5" align="center" height="17px" >办理情况</td>
		</tr>
		<c:forEach items="${reportList}" var="report" varStatus="index">
		<tr>
			<td style="background-color: #ffffff;word-break : break-all" align="left"><div align="left">${index.count}#&nbsp;${report.userName}&nbsp;<fmt:formatDate value="${report.reportTime}" type="both"/><br/><br/></div>${report.content}</td>
		</tr>
		</c:forEach>
	</table>
	</c:if>
	<table style="margin-top: 5px" width="100%" align="center">
		<tr><td colspan="3" align="center">
			<input class="button_02" type="button" onclick="window.close()" value="关闭" >&nbsp;&nbsp;
		 </td> </tr>
	</table>
	<table style="border: 1px solid;" align="center" width="95%" border="0" cellspacing="1" cellpadding="0" bgcolor="#999999" >
		<c:forEach items="${historyList}" var="his">
		<tr>
		<td  style="background: #ffffff" width="5%">${his.levels}</td>
		<td style="background: #ffffff" width="15%">${his.userName}</td>
		<td style="background:#ffffff" width="15%">${his.status}</td>
		<td style="background:#ffffff">${his.actorName}</td>
		<td style="background:#ffffff" width="20%"> <fmt:formatDate value="${his.createTime}" type="both"/></td>
		</tr>
		</c:forEach>
	</table>
  </td>
<td style="background: url('image/wsoa_window_006.gif');"  width="1">&nbsp;</td></tr>
  <tr>
    <td height="1" width="1"><img src="image/wsoa_window_009.gif" height="16" width="14"></td>
    <td style="background: url('image/wsoa_window_008.gif');" height="1"></td>
    <td height="1" width="1"><img src="image/wsoa_window_007.gif" height="16" width="12"></td>
  </tr>
</tbody>
</table>
</body>
</html>